package com.cx.bank.pojo;



public class UserBean{
    private int user_id;
    private String user_name;
    private String password;
    private Double balance=0.0;//默认为0
    private int identity;//身份0是用户1是管理员
    private int user_flag=0;//状态0为未冻结1为冻结

    @Override
    public String toString() {
        return "UserBean{" +
                "user_id=" + user_id +
                ", user_name='" + user_name + '\'' +
                ", password='" + password + '\'' +
                ", balance=" + balance +
                ", identity=" + identity +
                ", user_flag=" + user_flag +
                '}';
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public void setMoney(Double balance) {
        this.balance = balance;
    }

    public int getIdentity() {
        return identity;
    }

    public void setIdentity(int identity) {
        this.identity = identity;
    }

    public int getState() {
        return user_flag;
    }

    public void setState(int user_flag) {
        this.user_flag = user_flag;
    }

    public UserBean(String user_name) {
        this.user_name = user_name;
    }

    public UserBean(String user_name, String password) {
        this.user_name = user_name;
        this.password = password;
    }

    public UserBean(String user_name, String password, double balance) {
        this.user_name = user_name;
        this.password = password;
        this.balance = balance;
    }

    public UserBean(String user_name, String password, int identity) {
        this.user_name = user_name;
        this.password = password;
        this.identity = identity;
    }

    public UserBean(String user_name, String password, Double balance, int identity) {
        this.user_name = user_name;
        this.password = password;
        this.balance = balance;
        this.identity = identity;
    }

    public UserBean(String user_name, String password, Double balance, int identity, int user_flag) {
        this.user_name = user_name;
        this.password = password;
        this.balance = balance;
        this.identity = identity;
        this.user_flag = user_flag;
    }

    public UserBean() {

    }

    public String getUserName() {
        return user_name;
    }

    public void setUserName(String user_name) {
        this.user_name = user_name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getMoney() {
        return balance;
    }

    public void setMoney(double balance) {
        this.balance = balance;
    }



}
